package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.entity.CmsProductSku;
import com.project.pojo.model.UpdateProductSkuModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CmsProductSkuMapper extends BaseMapper<CmsProductSku> {

    /**
     * 添加商品SKU信息
     * @param productSkus
     * @param productId
     * @return
     */
    int insertProductSku(@Param("productSkus") List<UpdateProductSkuModel> productSkus, @Param("productId") Long productId);

}